package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.entity.Result;
import com.itheima.pojo.Permission;

import java.util.List;

public interface PermissionService {

    //添加新的权限
    public void add(Permission permission);

    //分页查询
    public PageResult queryPage(QueryPageBean queryPageBean);

    //根据id删除权限项
    public Result deleteById(Integer id);

    //根据id查询权限项
    public Permission findById(Integer id);

    //根据id更新权限项
    public void editPermission(Permission permission);

    //查询所有的权限
    public List<Permission> findAll();
}
